/**
 *    Copyright (c) [2022] [中和农信]
 *    rabbit-mq-plus is licensed under Mulan PSL v2.
 *    You can use this software according to the terms and conditions of the Mulan PSL v2.
 *    You may obtain a copy of Mulan PSL v2 at:
 *             http://license.coscl.org.cn/MulanPSL2
 *    THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 *    See the Mulan PSL v2 for more details.
 *
 */
package com.cfpamf.athean.rabbit.mq.plus.producer.core;

/**
 * 类RabbitMqPlusProducerResultTemplate.java的实现描述：
 *
 * @author Andy（陈洪桥）2023年02月17 14:09
 */
public interface RabbitMqPlusProducerResultTemplate {

    /**
     * 消息投递成功
     * 
     * @param messageId
     * @param eventNo
     * @param eventTypeCode
     */
    void akc(final String messageId, final String eventNo, String eventTypeCode);

    /**
     * 消息投递未响应
     * 
     * @param messageId
     * @param eventNo
     * @param eventTypeCode
     * @param retryCount
     */
    void nack(final String messageId, final String eventNo, String eventTypeCode, final int retryCount);

    /**
     * 消息投递失败
     * 
     * @param messageId
     * @param eventNo
     * @param eventTypeCode
     * @param retryCount
     */
    void fail(final String messageId, final String eventNo, String eventTypeCode, final int retryCount);

}
